//package com.tidc.commonality.api;
//
//import com.tidc.commonality.config.FeignMultipartSupportConfig;
//import com.tidc.commonality.fallbackFactory.StudentDownFallbackFactory;
//import com.tidc.commonality.ov.UserOV;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.servlet.http.HttpServletResponse;
//
//
///**
// * @ClassNmae StudentDownApi
// * @Description TODO
// * @Author 冯涛滔
// **/
//@FeignClient(name = "DOWNPROVIDER",fallbackFactory = StudentDownFallbackFactory.class,configuration = FeignMultipartSupportConfig.class)
//public interface StudentDownApi {
//	@RequestMapping(value = "/student/down/work/file/{worksId}",method = RequestMethod.GET)
//	@ApiOperation("学生下载学生项目文件需要下载的项目的id")
//	//需要一个权限判断是否是自己上传的文件
//	public ResponseEntity<byte[]> studentDownFile( @RequestParam("token")String token, @PathVariable("worksId") int worksId);
//
//	@ApiOperation("下载比赛的详细信息文件需要比赛的id")
//	@RequestMapping(value = "/student/down/match/file/{id}",method = RequestMethod.GET)
//	public ResponseEntity<byte[]>  downMatchFile(@PathVariable("id") int id);
//
//	@ApiOperation("上传文件,需要一个文件 一个比赛名字一个 数字老师为1 学生为2")
////	图片200 其他201
//	@RequestMapping(value = "/student/upload/file",method = RequestMethod.POST)
//	public UserOV uploadFile(@RequestPart(value = "file") MultipartFile file, @RequestParam("name") String name, int id,  @RequestParam("token")String token);
//
//
//
//	@RequestMapping(value = "/teacher/down/file/{id}",method = RequestMethod.GET)
//	@ApiOperation("老师下载文件需要下载的项目的id" )
//	public ResponseEntity<byte[]>  teacherDownFile(@PathVariable("id") int worksId);
//
//
//}
